// Author: combacsa@kaist.ac.kr
// http://www.jungol.co.kr/prog/Hanal/hanalView.php?qs_code=1430
// 난이도: 하 (1분)

//#define COMPILE_P1430
#ifdef COMPILE_P1430

#include <fstream>

using namespace std;

int a, b, c;
int answer[10];

void input() {
	ifstream in("input.txt");
	in >> a >> b >> c;
	in.close();
}

void solve() {
	int result = a * b * c;
	while (result > 0) {
		int now = result % 10;
		answer[now]++;
		result /= 10;
	}
}

void output() {
	ofstream out("output.txt");
	for (int i = 0; i < 10; i++)
		out << answer[i] << "\n";
	out.close();
}

int main() {
	input();
	solve();
	output();
    return 0;
}


#endif
